package com.itheima.job;

import java.util.HashMap;
import java.util.Scanner;

public class Test0801 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        char[] chars = s.toCharArray();
        HashMap<String,Integer> hm = new HashMap<>();

        int i = 0;
        for (char aChar : chars) {
            String key = String.valueOf(aChar);

            if (hm.containsKey(key)){
                i = hm.get(key);
                i++;
            }else {
                i = 1;
            }
            hm.put(key,i);
        }

        System.out.println(hm);
    }


}

